import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import viteCompression from 'vite-plugin-compression'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    viteCompression({
      filter: /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i,
      threshold: 4096,
      algorithm: 'gzip',
      ext: 'gz',
      deleteOriginFile: false
    })
  ],
  base: '/console'
})
